package com.whfc.emp.dpa;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.jms.annotation.EnableJms;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @Description:
 * @author: xugcheng
 * @version: 1.0
 * @date: 2020-12-28 11:36
 */
@SpringBootApplication(scanBasePackages = "com.whfc")
@ComponentScan(value = "com.whfc")
@EnableAsync(proxyTargetClass = true)
@EnableAspectJAutoProxy(proxyTargetClass = true)
@EnableJms
public class EmpDataPorcessApp implements CommandLineRunner {

    private Logger logger = LoggerFactory.getLogger(this.getClass());

    public static void main(String[] agrs) {
        SpringApplication.run(EmpDataPorcessApp.class, agrs);
    }

    @Override
    public void run(String... args) throws Exception {
        logger.info("人员数据处理程序启动....");
//        System.in.read();
    }
}
